package com.autonavi.yunda.yunji.core.enums;

import lombok.Getter;

/**
 * @author cizhong.wcs
 * @date 2022/6/6 16:29
 */
public enum AccessStatus {
    ACCESSIBLE("可达"),
    INACCESSIBLE("条件判断不可达"),
    ;
    @Getter
    private final String desc;

    AccessStatus(String desc) {
        this.desc = desc;
    }

    public static AccessStatus fromBoolean(boolean access) {
        if (access) {
            return ACCESSIBLE;
        } else {
            return INACCESSIBLE;
        }
    }

}
